<template>
	<view class="page" :style="loading ? 'opacity: 0;' : 'opacity: 1;'">
		<!--  v-model="dataList" @query="queryList" -->
		<pageTxt>
			<z-paging ref="paging" :paging-style="{ 'background-color': '#f7f7f7', height: '100%', width: '100%' }">
				<!-- 头部 -->
				<template slot="top">
					<view class="navbar-box">
						<u-navbar title="付款单申请" :autoBack="true" :fixed="false"></u-navbar>
					</view>
				</template>
				<view class="add-content ios">
					<u--form labelPosition="top" :model="formInlinePayment" ref="uForm" labelWidth="auto">
						<view class="form-box">
							<u-form-item labelPosition="top" labelWidth="100%" required borderBottom label="付款类型" @click="cascaderFunc('payTypeReceiveShow')">
								<u--input
									placeholder="选择付款类型"
									inputAlign="left"
									v-model="formInlinePayment.pay_type_name"
									border="none"
									color="#000000"
									fontSize="28rpx"
									disabled
									disabledColor="#ffffff"
									suffixIcon="arrow-right"
									suffixIconStyle="color: #727272;font-size:24rpx;font-weight:500;"
									placeholderStyle="font-weight: 400;font-size: 28rpx;color: #B1B1B0;"
								></u--input>
							</u-form-item>
							<u-form-item
								labelPosition="top"
								labelWidth="100%"
								:required="formInlinePayment.pay_type != 2"
								borderBottom
								label="项目名称"
								v-if="formInlinePayment.pay_type_name"
								@click="cascaderFunc('projectShow')"
							>
								<u--input
									placeholder="选择项目名称"
									inputAlign="left"
									v-model="formInlinePayment.project_name"
									border="none"
									color="#000000"
									fontSize="28rpx"
									disabled
									disabledColor="#ffffff"
									suffixIcon="arrow-right"
									suffixIconStyle="color: #727272;font-size:24rpx;font-weight:500;"
									placeholderStyle="font-weight: 400;font-size: 28rpx;color: #B1B1B0;"
								></u--input>
							</u-form-item>
							<u-form-item
								labelPosition="top"
								labelWidth="100%"
								required
								borderBottom
								label="关联供应商"
								v-if="formInlinePayment.pay_type == 2"
								@click="cascaderFunc('supplierShow')"
							>
								<u--input
									placeholder="选择关联供应商"
									inputAlign="left"
									v-model="formInlinePayment.supplier_name"
									border="none"
									color="#000000"
									fontSize="28rpx"
									disabled
									disabledColor="#ffffff"
									suffixIcon="arrow-right"
									suffixIconStyle="color: #727272;font-size:24rpx;font-weight:500;"
									placeholderStyle="font-weight: 400;font-size: 28rpx;color: #B1B1B0;"
								></u--input>
							</u-form-item>
							<u-form-item
								labelPosition="top"
								labelWidth="100%"
								required
								borderBottom
								label="关联结算单"
								v-if="formInlinePayment.pay_type == 2 && formInlinePayment.supplier_name"
								@click="cascaderFunc('purchaseSettlementShow')"
							>
								<u--input
									placeholder="选择关联结算单"
									inputAlign="left"
									v-model="formInlinePayment.settlement_num"
									border="none"
									color="#000000"
									fontSize="28rpx"
									disabled
									disabledColor="#ffffff"
									suffixIcon="arrow-right"
									suffixIconStyle="color: #727272;font-size:24rpx;font-weight:500;"
									placeholderStyle="font-weight: 400;font-size: 28rpx;color: #B1B1B0;"
								></u--input>
							</u-form-item>
							<u-form-item labelPosition="top" labelWidth="100%" required borderBottom label="申请金额">
								<u--input
									@input="inputFunc"
									type="number"
									placeholder="输入申请金额"
									inputAlign="left"
									v-model="formInlinePayment.apply_amount"
									border="none"
									color="#000000"
									fontSize="28rpx"
									placeholderStyle="font-weight: 400;font-size: 28rpx;color: #B1B1B0;"
								></u--input>
							</u-form-item>
							<u-form-item labelPosition="top" labelWidth="100%" required borderBottom label="往来账户" @click="cascaderFunc('receiveShow')">
								<u--input
									placeholder="选择往来账户"
									inputAlign="left"
									v-model="formInlinePayment.receive_name"
									border="none"
									color="#000000"
									fontSize="28rpx"
									disabled
									disabledColor="#ffffff"
									suffixIcon="arrow-right"
									suffixIconStyle="color: #727272;font-size:24rpx;font-weight:500;"
									placeholderStyle="font-weight: 400;font-size: 28rpx;color: #B1B1B0;"
								></u--input>
							</u-form-item>
							<u-form-item labelPosition="top" labelWidth="100%" :required="formInlinePayment.pay_type != 1" borderBottom label="主体账户" @click="cascaderFunc('companyShow')">
								<u--input
									placeholder="选择主体账户"
									inputAlign="left"
									v-model="formInlinePayment.main_name"
									border="none"
									color="#000000"
									fontSize="28rpx"
									disabled
									disabledColor="#ffffff"
									suffixIcon="arrow-right"
									suffixIconStyle="color: #727272;font-size:24rpx;font-weight:500;"
									placeholderStyle="font-weight: 400;font-size: 28rpx;color: #B1B1B0;"
								></u--input>
							</u-form-item>
							<u-form-item
								labelPosition="top"
								labelWidth="100%"
								required
								borderBottom
								label="付款事由"
								v-if="formInlinePayment.pay_type == 1"
								@click="cascaderFunc('applyTypeShow')"
							>
								<u--input
									placeholder="选择付款事由"
									inputAlign="left"
									v-model="formInlinePayment.apply_type_name"
									border="none"
									color="#000000"
									fontSize="28rpx"
									disabled
									disabledColor="#ffffff"
									suffixIcon="arrow-right"
									suffixIconStyle="color: #727272;font-size:24rpx;font-weight:500;"
									placeholderStyle="font-weight: 400;font-size: 28rpx;color: #B1B1B0;"
								></u--input>
							</u-form-item>
							<u-form-item labelPosition="top" labelWidth="100%" label="备注">
								<u--input
									placeholder="输入备注"
									inputAlign="left"
									v-model="formInlinePayment.desc"
									border="none"
									color="#000000"
									fontSize="28rpx"
									placeholderStyle="font-weight: 400;font-size: 28rpx;color: #B1B1B0;"
								></u--input>
							</u-form-item>
						</view>
					</u--form>
				</view>
				<view class="footer ios">
					<u-button
						text="提交"
						@click="submit"
						customStyle="width: 702rpx;height: 88rpx;background: #3B75FF;border-radius: 16rpx;font-weight: 500;font-size: 28rpx;color: #FFFFFF;margin:20rpx 24rpx;"
					></u-button>
				</view>
			</z-paging>
		</pageTxt>
		<!-- 付款单类型 -->
		<u-picker
			ref="payTypeReceiveShow"
			title="付款单类型"
			closeOnClickOverlay
			:show="payTypeReceiveShow"
			:columns="[payTypeReceiveList]"
			@confirm="confirmFunc($event, 'payTypeReceiveShow')"
			@cancel="closeFunc('payTypeReceiveShow')"
			@close="closeFunc('payTypeReceiveShow')"
			keyName="label"
		></u-picker>
		<!-- 项目列表 -->
		<u-picker
			ref="projectShow"
			title="项目列表"
			closeOnClickOverlay
			:show="projectShow"
			:columns="[projectList]"
			@confirm="confirmFunc($event, 'projectShow')"
			@cancel="closeFunc('projectShow')"
			@close="closeFunc('projectShow')"
			keyName="project_name"
		></u-picker>
		<!-- 供应商列表 -->
		<u-picker
			ref="supplierShow"
			title="供应商列表"
			closeOnClickOverlay
			:show="supplierShow"
			:columns="[supplierList]"
			@confirm="confirmFunc($event, 'supplierShow')"
			@cancel="closeFunc('supplierShow')"
			@close="closeFunc('supplierShow')"
			keyName="supplier_name"
		></u-picker>
		<!-- 结算单列表 -->
		<u-picker
			ref="purchaseSettlementShow"
			title="结算单列表"
			closeOnClickOverlay
			:show="purchaseSettlementShow"
			:columns="[purchaseSettlementList]"
			@confirm="confirmFunc($event, 'purchaseSettlementShow')"
			@cancel="closeFunc('purchaseSettlementShow')"
			@close="closeFunc('purchaseSettlementShow')"
			keyName="bill_name"
		></u-picker>
		<!-- 主体账户列表 -->
		<u-picker
			ref="companyShow"
			title="主体账户列表"
			closeOnClickOverlay
			:show="companyShow"
			:columns="[companyList]"
			@confirm="confirmFunc($event, 'companyShow')"
			@cancel="closeFunc('companyShow')"
			@close="closeFunc('companyShow')"
			keyName="account_name"
		></u-picker>
		<!-- 往来账户列表 -->
		<u-picker
			ref="receiveShow"
			title="往来账户列表"
			closeOnClickOverlay
			:show="receiveShow"
			:columns="[receiveList]"
			@confirm="confirmFunc($event, 'receiveShow')"
			@cancel="closeFunc('receiveShow')"
			@close="closeFunc('receiveShow')"
			keyName="account_name"
		></u-picker>
		<!-- 付款事由 -->
		<u-picker
			ref="applyTypeShow"
			title="付款事由"
			closeOnClickOverlay
			:show="applyTypeShow"
			:columns="[applyTypeList]"
			@confirm="confirmFunc($event, 'applyTypeShow')"
			@cancel="closeFunc('applyTypeShow')"
			@close="closeFunc('applyTypeShow')"
			keyName="label"
		></u-picker>
	</view>
</template>

<script>
export default {
	data() {
		return {
			loading: false,
			list: [],
			formInlinePayment: {
				pay_type: '',
				pay_type_name: '',
				project_id: '',
				project_name: '',
				settlement_id: '',
				settlement_num: '',
				apply_amount: '',
				receive_id: '',
				receive_num: '',
				receive_name: '',
				main_id: '',
				main_num: '',
				main_name: '',
				desc: '',
				apply_type: '',
				apply_type_name: '',
				supplier_id: '',
				supplier_name: ''
			},
			//付款单类型
			payTypeReceiveList: [
				{
					id: 1,
					label: '工程款'
				},
				{
					id: 2,
					label: '供应商货款'
				},
				{
					id: 3,
					label: '装修退款'
				}
			],
			payTypeReceiveShow: false, //付款类型弹窗
			projectList: [], //项目列表
			projectShow: false, //项目列表弹窗
			supplierList: [], //供应商列表
			supplierShow: false, //供应商弹窗
			purchaseSettlementList: [], //结算单列表
			purchaseSettlementShow: false, //结算单弹窗
			companyList: [], //主体账户
			companyShow: false, //主体账户弹窗
			receiveList: [], //往来账户
			receiveShow: false, //往来账户弹窗
			//付款事由
			applyTypeList: [
				{
					id: 1,
					label: '基准收付款(40%)'
				},
				{
					id: 2,
					label: '过程验收款(20%)'
				},
				{
					id: 3,
					label: '设备调试款(30%)'
				},
				{
					id: 4,
					label: '基准尾款(10%)'
				},
				{
					id: 5,
					label: '增项基准(100%)'
				}
			],
			applyTypeShow: false
		};
	},
	async onLoad(option) {
		await this.getSupplier();
		await this.getCompanyList(1);
		await this.getCompanyList(2);
		if (option.id) {
			const eventChannel = this.getOpenerEventChannel();
			eventChannel.on('sendData', (data) => {
				this.editDataFunc(data);
			});
		}
	},
	methods: {
		inputFunc(e) {
			this.$nextTick(() => {
				this.formInlinePayment.apply_amount = this.$inputFunc(e);
			});
		},
		// picker 弹窗打开
		cascaderFunc(type) {
			switch (type) {
				case 'payTypeReceiveShow':
					let payTypeIndex = this.payTypeReceiveList.findIndex((item) => {
						return item.id == this.formInlinePayment.pay_type;
					});
					this.$refs.payTypeReceiveShow.setIndexs([payTypeIndex == -1 ? 0 : payTypeIndex], true);
					this.payTypeReceiveShow = true;
					break;
				case 'projectShow':
					let projectIndex = this.projectList.findIndex((item) => {
						return item.id == this.formInlinePayment.project_id;
					});
					this.$refs.projectShow.setIndexs([projectIndex == -1 ? 0 : projectIndex], true);
					this.projectShow = true;
					break;
				case 'supplierShow':
					if (!this.supplierList.length) {
						uni.showToast({
							title: '暂无供应商',
							icon: 'error'
						});
						return;
					}
					let supplierIndex = this.supplierList.findIndex((item) => {
						return item.Id == this.formInlinePayment.supplier_id;
					});
					this.$refs.supplierShow.setIndexs([supplierIndex == -1 ? 0 : supplierIndex], true);
					this.supplierShow = true;
					break;
				case 'purchaseSettlementShow':
					if (!this.purchaseSettlementList.length) {
						uni.showToast({
							title: '该项目无结算单',
							icon: 'error'
						});
						return;
					}
					let purchaseSettlementIndex = this.purchaseSettlementList.findIndex((item) => {
						return item.id == this.formInlinePayment.settlement_id;
					});
					this.$refs.purchaseSettlementShow.setIndexs([purchaseSettlementIndex == -1 ? 0 : purchaseSettlementIndex], true);
					this.purchaseSettlementShow = true;
					break;
				case 'companyShow':
					let companyIndex = this.companyList.findIndex((item) => {
						return item.id == this.formInlinePayment.main_id;
					});
					this.$refs.companyShow.setIndexs([companyIndex == -1 ? 0 : companyIndex], true);
					this.companyShow = true;
					break;
				case 'receiveShow':
					let receiveIndex = this.receiveList.findIndex((item) => {
						return item.id == this.formInlinePayment.receive_id;
					});
					this.$refs.receiveShow.setIndexs([receiveIndex == -1 ? 0 : receiveIndex], true);
					this.receiveShow = true;
					break;
				case 'applyTypeShow':
					let applyTypeIndex = this.applyTypeList.findIndex((item) => {
						return item.id == this.formInlinePayment.apply_type;
					});
					this.$refs.applyTypeShow.setIndexs([applyTypeIndex == -1 ? 0 : applyTypeIndex], true);
					this.applyTypeShow = true;
					break;

				default:
			}
		},
		// picker 弹窗关闭
		closeFunc(type) {
			switch (type) {
				case 'payTypeReceiveShow':
					this.payTypeReceiveShow = false;
					break;
				case 'projectShow':
					this.projectShow = false;
					break;
				case 'supplierShow':
					this.supplierShow = false;
					break;
				case 'purchaseSettlementShow':
					this.purchaseSettlementShow = false;
					break;
				case 'companyShow':
					this.companyShow = false;
					break;
				case 'receiveShow':
					this.receiveShow = false;
					break;
				case 'applyTypeShow':
					this.applyTypeShow = false;
					break;
				default:
			}
		},
		// picker 弹窗选择
		confirmFunc(e, type) {
			console.log(e);
			switch (type) {
				case 'payTypeReceiveShow':
					this.formInlinePayment.pay_type_name = e.value[0].label;
					this.formInlinePayment.pay_type = e.value[0].id;
					this.formInlinePayment.supplier_name = '';
					this.formInlinePayment.supplier_id = '';
					this.formInlinePayment.settlement_id = '';
					this.formInlinePayment.settlement_num = '';
					this.formInlinePayment.apply_type = '';
					this.formInlinePayment.apply_type_name = '';
					switch (this.formInlinePayment.pay_type) {
						case 1:
							this.selectProjectList({
								less_status: 1500
							}); //项目列表
							break;
						case 2:
							this.selectProjectList({
								less_status: 1500
							}); //项目列表
							break;
						case 3:
							this.selectProjectList({
								less_status: 1500
							}); //项目列表
							break;
						default:
					}
					this.payTypeReceiveShow = false;
					break;
				case 'projectShow':
					this.formInlinePayment.project_name = e.value[0].project_name;
					this.formInlinePayment.project_id = e.value[0].id;
					let mainIndex = this.companyList.findIndex((item) => {
						return item.id == e.value[0].receiving_account_id;
					});
					if (mainIndex != -1) {
						this.formInlinePayment.main_name = this.companyList[mainIndex].account_name;
						this.formInlinePayment.main_id = this.companyList[mainIndex].id;
						this.formInlinePayment.main_num = this.companyList[mainIndex].account_number;
					}
					this.projectShow = false;
					break;
				case 'supplierShow':
					this.getPurchaseSettlement({
						page: 1,
						num: 999,
						supplier_id: e.value[0].Id,
						supplier_name: e.value[0].supplier_name,
						settlement_state: 2
					});
					this.formInlinePayment.supplier_name = e.value[0].supplier_name;
					this.formInlinePayment.supplier_id = e.value[0].Id;
					this.supplierShow = false;
					break;
				case 'purchaseSettlementShow':
					this.formInlinePayment.settlement_id = e.value[0].id;
					this.formInlinePayment.settlement_num = e.value[0].bill_name;
					this.purchaseSettlementShow = false;
					break;
				case 'companyShow':
					this.formInlinePayment.main_name = e.value[0].account_name;
					this.formInlinePayment.main_id = e.value[0].id;
					this.formInlinePayment.main_num = e.value[0].account_number;
					this.companyShow = false;
					break;
				case 'receiveShow':
					this.formInlinePayment.receive_name = e.value[0].account_name;
					this.formInlinePayment.receive_id = e.value[0].id;
					this.formInlinePayment.receive_num = e.value[0].account_number;
					this.receiveShow = false;
					break;
				case 'applyTypeShow':
					this.formInlinePayment.apply_type_name = e.value[0].label;
					this.formInlinePayment.apply_type = e.value[0].id;
					this.applyTypeShow = false;
					break;
				default:
			}
		},
		// 提交字段判空
		isNullFunc() {
			let formInlinePayment = this.formInlinePayment;
			if (!formInlinePayment.pay_type_name) {
				uni.showToast({
					title: '请选择付款类型',
					icon: 'error'
				});
				return false;
			}
			if (!formInlinePayment.project_name && formInlinePayment.pay_type != 2) {
				uni.showToast({
					title: '请选择项目',
					icon: 'error'
				});
				return false;
			}
			if (formInlinePayment.pay_type == 2 && !formInlinePayment.supplier_name) {
				uni.showToast({
					title: '请选择供应商',
					icon: 'error'
				});
				return false;
			}
			if (formInlinePayment.pay_type == 2 && formInlinePayment.supplier_name && !formInlinePayment.settlement_num) {
				uni.showToast({
					title: '请选择关联结算单',
					icon: 'error'
				});
				return false;
			}
			if (!formInlinePayment.apply_amount) {
				uni.showToast({
					title: '请输入申请金额',
					icon: 'error'
				});
				return false;
			}
			if (!formInlinePayment.receive_name) {
				uni.showToast({
					title: '请选择往来账户',
					icon: 'error'
				});
				return false;
			}
			if (!formInlinePayment.main_name && formInlinePayment.pay_type != 1) {
				uni.showToast({
					title: '请选择主体账户',
					icon: 'error'
				});
				return false;
			}
			if (formInlinePayment.pay_type == 1 && !formInlinePayment.apply_type_name) {
				uni.showToast({
					title: '请选择付款事由',
					icon: 'error'
				});
				return false;
			}
			return true;
		},
		submit() {
			let formInlinePayment = this.formInlinePayment;
			console.log(formInlinePayment);
			if (!this.isNullFunc()) return;
			if (formInlinePayment.payment_id) {
				this.updatePaymentOrder(formInlinePayment);
				return;
			}
			this.addPaymentOrder(formInlinePayment);
		},
		// 更新付款单
		updatePaymentOrder(obj) {
			uni.showLoading({
				mask: true
			});
			this.$Apipc.updatePaymentOrder(obj).then((res) => {
				console.log(res, '更新付款单');
				uni.hideLoading();
				if (res.code == 200) {
					setTimeout(() => {
						var currentPages = getCurrentPages()[getCurrentPages().length - 2];
						if (currentPages) {
							uni.navigateBack({
								delta: 1
							});
						} else {
							uni.reLaunch({
								url: '/pages/index/index'
							});
						}
					}, 500);
				}
				uni.showToast({
					icon: res.code == 200 ? 'success' : 'error',
					title: res.message
				});
			});
		},
		// 添加付款单
		addPaymentOrder(obj) {
			uni.showLoading({
				mask: true
			});
			this.$Apipc.addPaymentOrder(obj).then((res) => {
				console.log(res, '添加付款单');
				uni.hideLoading();
				if (res.code == 200) {
					var pages = getCurrentPages();
					var perPage = pages[pages.length - 2];
					if (perPage && perPage.$vm.$refs.attachmentManagement) {
						perPage.$vm.$refs.attachmentManagement.searchFunc();
					}

					setTimeout(() => {
						if (perPage) {
							uni.navigateBack({
								delta: 1
							});
						} else {
							uni.reLaunch({
								url: '/pages/index/index'
							});
						}
					}, 500);
				}
				uni.showToast({
					icon: res.code == 200 ? 'success' : 'error',
					title: res.message
				});
			});
		},

		// 获取项目列表
		selectProjectList(obj) {
			this.projectList = [];
			uni.showLoading({
				mask: true
			});
			this.$Apipc.selectProjectList(obj).then((res) => {
				console.log(res, '项目列表');
				uni.hideLoading();
				if (res.code == 200) {
					this.projectList = res.data;
				}
			});
		},
		// 供应商列表
		getSupplier() {
			return new Promise((resolve, reject) => {
				this.$Apipc
					.getSupplier({
						page: 1,
						num: 999
					})
					.then((res) => {
						resolve();
						console.log(res, '供应商列表');
						if (res.code == 200) {
							this.supplierList = res.data.list;
						}
					});
			});
		},
		// 结算单列表
		getPurchaseSettlement(obj) {
			this.$Apipc.getPurchaseSettlement(obj).then((res) => {
				console.log(res, '结算单列表');
				if (res.code == 200) {
					this.purchaseSettlementList = res.data.list;
				}
			});
		},
		// 往来账户2，主体账户1
		getCompanyList(account_type) {
			return new Promise((resolve, reject) => {
				this.$Apipc
					.getCompanyList({
						page: 1,
						num: 999,
						account_type
					})
					.then((res) => {
						console.log(res, account_type == 1 ? '主体账户列表' : '往来账户');
						resolve();
						if (res.code == 200) {
							switch (account_type) {
								case 1:
									this.companyList = res.data.list;
									break;
								case 2:
									this.receiveList = res.data.list;
									break;
							}
						}
					});
			});
		},
		// 重新提交数据显示处理
		editDataFunc(data) {
			this.$Apipc
				.getPaymentOrderInfo({
					payment_id: data.id
				})
				.then((res) => {
					console.log(res, '收款单详情');
					if (res.code == 200) {
						let item = res.data;
						this.formInlinePayment = {
							pay_type: item.pay_type,
							pay_type_name: '',
							project_id: item.project_id,
							project_name: item.project_name,
							settlement_id: item.settlement_id,
							settlement_num: item.bill_name,
							apply_amount: item.apply_amount,
							receive_id: item.receive_id,
							receive_num: '',
							receive_name: item.receive_name,
							main_id: item.main_id,
							main_num: '',
							main_name: item.main_name,
							desc: item.remarks,
							apply_type: item.apply_type,
							apply_type_name: '',
							supplier_id: item.supplier_id,
							supplier_name: item.supplier_name,
							payment_id: item.id
						};
						// 获取项目列表
						switch (item.pay_type) {
							case 1:
								this.selectProjectList({
									less_status: 1500
								}); //项目列表
								break;
							case 2:
								this.selectProjectList({
									less_status: 1500
								}); //项目列表
								break;
							case 3:
								this.selectProjectList({
									less_status: 1500
								}); //项目列表
								break;
							default:
						}
						// 付款类型
						let payTypeReceiveIndex = this.payTypeReceiveList.findIndex((i) => {
							return i.id == item.pay_type;
						});
						if (payTypeReceiveIndex != -1) {
							this.formInlinePayment.pay_type_name = this.payTypeReceiveList[payTypeReceiveIndex].label;
						}
						// 付款事由
						let applyTypeIndex = this.applyTypeList.findIndex((i) => {
							return i.id == item.apply_type;
						});
						if (applyTypeIndex != -1) {
							this.formInlinePayment.apply_type_name = this.applyTypeList[applyTypeIndex].label;
						}
						// 主体账户。往来账户
						let companyList = this.companyList;
						let receiveList = this.receiveList;
						let companyIndex = companyList.findIndex((i) => {
							return i.id == item.main_id;
						});
						if (companyIndex != -1) {
							this.formInlinePayment.main_num = companyList[companyIndex].account_number;
						}
						let receiveIndex = receiveList.findIndex((i) => {
							return i.id == item.receive_id;
						});
						if (receiveIndex != -1) {
							this.formInlinePayment.receive_num = receiveList[receiveIndex].account_number;
						}
					}
				});
		}
	}
};
</script>

<style lang="scss" scoped></style>
